{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[]"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "zao_dian_puzi1 = ['油条','包子'] \n",
    "my_zaodian = []\n",
    "if '油条' in zao_dian_puzi1:\n",
    "    my_zaodian.append('油条')\n",
    "    if '豆浆' in zao_dian_puzi1:\n",
    "        my_zaodian.append('豆浆')\n",
    "    elif '稀豆粉' in zao_dian_puzi1:\n",
    "        my_zaodian.append('稀豆粉')\n",
    "    elif '稀饭' in zao_dian_puzi1:\n",
    "        my_zaodian.append('稀饭')\n",
    "    else:\n",
    "        my_zaodian.remove('油条')\n",
    "        if '米线' in zao_dian_puzi1:\n",
    "            my_zaodian.append('米线')\n",
    "        elif '面条' in zao_dian_puzi1:\n",
    "            my_zaodian.append('面条')                \n",
    "elif '米线' in zao_dian_puzi1:\n",
    "    my_zaodian.append('米线')\n",
    "elif '面条' in zao_dian_puzi1:\n",
    "    my_zaodian.append('面条')\n",
    "else:\n",
    "    pass\n",
    "\n",
    "my_zaodian"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "zao_dian_puzi1 = ['油条','豆浆','稀豆粉','稀饭','米线','面条'] "
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.0"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
